<script type="text/javascript">
    function editRecord(){
        loadUrl("#<?= $div ?>","<?= base_url(); ?>index.php?/edit_info/letterEditInfo/<?= $tid ?>/");
    }
</script>
<div class="post">
    <?php if (isset($errors)) {
        ?>
        <div class="error">
            Sorry, error occurred. <?= $errors; ?>
        </div>
    <?php } else {
        ?>
        <div class="entry">
            <table style="border:5px;border-style:solid;">
                <?php if ($this->session->userdata("admin")) {
                    ?>
                    <tr class="lighter">
                        <th>
                            Added by
                        </th>
                        <td>
                            <?= $added_by; ?>
                        </td>
                    </tr>
                <?php } ?>
                <tr class="darker">
                    <th>
                        Date added
                    </th>
                    <td>
                        <?= $date_added; ?>
                    </td>
                </tr>
                <tr class="darker">
                    <th>
                        Innovation
                    </th>
                    <td>
                        <?= $idea; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        Beneficiaries
                    </th>
                    <td>
                        <?= $beneficiaries; ?>
                    </td>
                </tr>
                <tr class="darker">
                    <th>
                        Business case
                    </th>
                    <td>
                        <?= $business_case; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        Return On Investment
                    </th>
                    <td>
                        <?= $roi; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        Implementation status
                    </th>
                    <td>
                        <?= $imple_status; ?>
                    </td>
                </tr>
                <tr class="darker">
                    <th>
                        Assessment remarks
                    </th>
                    <td>
                        <?= $assess_remarks; ?>
                    </td>
                </tr>
                <tr class="lighter">
                    <th>
                        File
                    </th>
                    <td>
                        <?= $file; ?>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"  style="text-align: right">
                        <input type="button" onclick="editRecord()" value="Edit" />
                        <input type="button" onclick="hide('#<?= $div; ?>')" value="Close" />                  
                    </td>
                </tr>

            </table>
        </div>
    <?php } ?>
</div>